import Vue from "vue";
import tabbarAgent from '@/common/js/tabbar.js'
export default {
	namespaced: true, // 命名空间必须写
	state: {
		isAgent: 'notAgent', // 是否展示代理招募(agent/notAgent)
		tabBarList: [],
		current: 0
	},
	getters: {},
	// 唯一修改state值的方法 
	// commit
	mutations: {
		setCurrent(state, value) {
			state.current = value;
		},
		setIsAgent(state, value) {
			state.isAgent = value;
			state.tabBarList = tabbarAgent[value];
		},
	}
}